/*
 * @Author: 龚燎原 274473435@qq.com
 * @Date: 2023-12-09 10:39:28
 * @LastEditors: 龚燎原
 * @LastEditTime: 2023-12-12 00:43:45
 */
import request from '@/utils/request'

// 查询列表
export function listExtSale(query) {
  return request({
    url: '/gas/extSale/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getExtSale(saleRecordId) {
  return request({
    url: '/gas/extSale/' + saleRecordId,
    method: 'get'
  })
}
export function getBaseInfoOptions(saleRecordId) {
  return request({
    url: '/gas/extSale/baseinfo',
    method: 'get'
  })
}

// 新增
export function addExtSale(data) {
  return request({
    url: '/gas/extSale',
    method: 'post',
    data: data
  })
}

// 修改
export function updateExtSale(data) {
  return request({
    url: '/gas/extSale',
    method: 'put',
    data: data
  })
}

// 调度
export function updateDispatch(data) {
  return request({
    url: '/gas/extSale/dispatch',
    method: 'post',
    data: data
  })
}
// 充装
export function updateFill(data) {
  return request({
    url: '/gas/extSale/fullFill',
    method: 'post',
    data: data
  })
}
// 删除
export function delExtSale(saleRecordId) {
  return request({
    url: '/gas/extSale/' + saleRecordId,
    method: 'delete'
  })
}
export function finishExtSale(saleRecordId) {
  return request({
    url: '/gas/extSale/' + saleRecordId,
    method: 'post'
  })
}
export function dealColorInfo(saleRecordId) {
  return request({
    url: '/gas/extSale/colorAlert/' + saleRecordId,
    method: 'post'
  })
}
export function dealVoicerInfo(saleRecordId) {
  return request({
    url: '/gas/extSale/voiceAlert/' + saleRecordId,
    method: 'post'
  })
}
